package com.bw.service;

import com.bw.dao.CarDao;
import com.bw.domain.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    CarDao dao;

    @Override
    public List<Car> getCha(String name, String carno) {
        return dao.getCha(name,carno);
    }

    @Override
    public int addTj(String name, String idcard, String tel, String carno, String cname, Integer tid, Integer status, String app) {
        return dao.addTj(name, idcard, tel, carno, cname, tid, status, app);
    }

    @Override
    public int deleSc(Integer id) {
        return dao.deleSc(id);
    }


}
